class RelationsToMember < ActiveRecord::Migration
  def self.up
    change_table :posts do |t|
      t.rename :user_id, :member_id
    end
    
    change_table :tutorials do |t|
      t.rename :user_id, :member_id
    end
  end

  def self.down
    change_table :posts do |t|
      t.rename :member_id, :user_id
    end
    
    change_Table :tutorials do |t|
      t.rename :member_id, :user_id
    end
  end
end
